package com.daz.student.leaveMessage.server.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;










import com.daz.common.message.MessageUtil;
import com.daz.student.leaveMessage.dao.MessageMapper;
import com.daz.student.leaveMessage.pojo.Message;
import com.daz.student.leaveMessage.server.ILeaveMessageSV;
import com.daz.teacher.leaveMessage.dao.ILeaveMessageDao;
import com.daz.teacher.leaveMessage.pojo.LeaveMessagePojo;
import com.daz.teacher.leaveMessage.server.ILeaveMessageService;
@Service
public class LeaveMessageSV implements ILeaveMessageSV{
	@Autowired
	private MessageMapper messageMapperDao;

	@Override
	public void insert(Message record) throws Exception {
		// TODO Auto-generated method stub
		messageMapperDao.insert(record);
	}

	@Override
	public List<Message> selectByParameters(Map<String, Object> map) throws Exception {
		// TODO Auto-generated method stub
		return messageMapperDao.selectByParameters(map);
	}

	@Override
	public void updateByPrimaryKeySelective(Message record) throws Exception {
		// TODO Auto-generated method stub
		messageMapperDao.updateByPrimaryKeySelective(record);
	}

	
}
